/**
 * API端点常量配置
 * 统一管理所有API接口地址
 */

// 导航相关API
export const NAVIGATION_API = {
  // 获取所有导航站点
  GET_ALL: '/api/navigation',
  // 添加导航站点
  CREATE: '/api/navigation',
  // 更新导航站点
  UPDATE: (id) => `/api/navigation/${id}`,
  // 删除导航站点
  DELETE: (id) => `/api/navigation/${id}`,
  // 上传图片
  UPLOAD: '/api/navigation/upload'
};

// AI服务相关API
export const AI_API = {
  OPENAI: 'https://api.openai.com/v1/chat/completions',
  DEEPSEEK: 'https://api.deepseek.com/v1/chat/completions'
};

// HTTP状态码
export const HTTP_STATUS = {
  OK: 200,
  CREATED: 201,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_SERVER_ERROR: 500
};

// 请求超时时间（毫秒）
export const REQUEST_TIMEOUT = {
  DEFAULT: 10000,
  UPLOAD: 30000,
  AI_CHAT: 60000
};